@use "src/styles/variables" as *;

.vm-anomaly-config {
  display: grid;
  grid-template-rows: calc(($vh * 70) - 78px - ($padding-medium*3)) auto;
  gap: $padding-global;
  min-width: 400px;
  max-width: 80vw;
  min-height: 300px;

  &_mobile {
    width: 100%;
    max-width: none;
    min-height: 100%;
    grid-template-rows: calc(($vh * 100) - 78px - ($padding-global*3)) auto;
  }

  textarea {
    overflow: auto;
    width: 100%;
    height: 100%;
    max-height: 900px;
  }

  &-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: $padding-small;
    text-align: center;

    &__icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      margin-bottom: $padding-small;
      color: $color-error;
    }

    &__title {
      font-size: $font-size-medium;
      font-weight: bold;
    }

    &__text {
      max-width: 700px;
      line-height: 1.3;
    }
  }

  &-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: $padding-small;
  }
}
